import sequtils

type
  Resistor* = enum
    Black= 0
    Brown= 1
    Red= 2
    Orange= 3
    Yellow= 4
    Green= 5
    Blue= 6
    Violet= 7
    Grey= 8
    White= 9

proc colorCode*(color: Resistor): int = 
  color.ord

proc colors*(): seq[Resistor] =
  Resistor.toSeq